Pirate Fleet 1

Pirate Fleet is a Battleship clone with a small twist: There are mines!


Project Overview

In this practice session, you will create ships, mines, and a final score calculation for the Pirate Fleet app.

To complete these tasks, you will work with two structs already defined by the app: the GridLocation struct and Ship struct. Also, you will define your very own Mine struct. These structs are required to add ships and mines to the gameboard.

For the final score, you will need to use a combination of variables, constants, and operators to perform the correct calculation.

Completing this Project

You should have completed all the necessary steps for finishing this project in Pirate Fleet 1 Prep. Before submitting, ensure your app does the following:

  • When the app launches, all 5 required ships are added to your gameboard.
  • When the app launches, 2 mines are added to your gameboard.
  • The final score is correctly calculated and printed when a game ends.

Also, be sure to convert your object diagram for the Pirate Fleet app to a pdf file, and include the diagram in your project submission. Remember, you can use draw.io to create your diagram.

Submitting Your Project

Before submitting your project for evaluation, we recommend that you check that each of the following is true:

  • Your app compiles & runs as expected
  • You are proud of your app and its output
  • You completed your project according to the instructions
  • You checked your project against the rubric

Create a zip file composed of both your object diagram (in pdf format), and the folder containing all the files in your Xcode project. For instructions on how to do this, click here. When you feel ready to submit, use the blue 'Submit Project' button below!

Note: Projects are typically returned within 24 hours, but for some projects or during high volume periods, the turnaround can take up to a week.